<?php
define('ROOT_PATH', dirname(dirname(dirname(dirname(__FILE__)))));
define('APP_PATH', dirname(dirname(__FILE__)));
define('APP_NAME', basename(APP_PATH));
define('PLATFORM', 'Facebook');

error_reporting(E_ALL^E_NOTICE);
require_once ROOT_PATH . '/framework/library/Bootstrap.php';

try {
    $options = array('interface' => Bootstrap::INTERFACE_CLI);
    Bootstrap::factory($options)->run();
} catch (Exception $e) {
    echo $e->getMessage();
}

try {
    $dal = new DataStore('wars_test');
    //    $dal->truncate();
    $data = array('uname' => 'Neaton', 'ages' => 18);
    $dal->save($data);
    //    $res = $dal->getLastInsertId();
    ////    $dal->remove('uid = ?', array(123));
    //    var_dump($res);

} catch (Exception $e) {
    Logger::error($e);
}

